package simulator.entities;

import java.awt.Color;
import java.awt.Graphics;

import simulator.drawengine.DrawEngine;
import simulator.enums.EntityType;
import simulator.types.Lane;

public class Bus extends BaseVehicle
{

	public Bus(TrafficLane spawn, TrafficLane dest)
	{
		super(spawn, dest);

		_maxSpeed = 22; // 10 units/sec
		_vehicleAcceleration = 6;
		_brakePower = 12;
		_vehicleLength = 8;
	}

	@Override
	public EntityType getType()
	{
		return EntityType.BUS;
	}

	@Override
	public void draw(Graphics g)
	{
		// TODO Auto-generated method stub

		// _position positie van voertuig
		// _heading richting van voertuig (radian)
		
		int gfxX = DrawEngine.getGraphicsX(_position.x);
		int gfxY = DrawEngine.getGraphicsY(_position.y);
		g.setColor(Color.blue);
//		g.fillOval(gfxX - 7, gfxY - 7, 15, 15);
		g.fillRect(gfxX - 7, gfxY - 7, 15, 15);
	}
}
